package com.xxh.blog.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxh.blog.entity.Essay;
import com.xxh.blog.entity.vo.EssayDetailVo;
import com.xxh.blog.entity.vo.EssayVo;

public interface essayService extends IService<Essay>  {
    IPage<EssayVo> paging(Page page, Integer cid, Integer level, Integer uid, Boolean recommend, String order);

    EssayDetailVo selectDetail(Page page, Integer id);

    void initHotEssay();

    /**
     * 增加，减少评论数量,重新进行合并排序
     */
    void incrCommentCountAndUnionWeekRank(Long essayid,boolean isinc);


    void putViewCount(EssayDetailVo vo);
}
